local width = 400

local innerRectangleWidth = 400
local ipadRatio = display.pixelHeight / display.pixelWidth
if ( string.sub( system.getInfo("model"), 1, 4 ) == "iPad" ) then
	application = {
		content = {
			width = width,
			height = width * ipadRatio,
			scale = "letterBox",
			xAlign = "center",
			yAlign = "center",
			imageSuffix = {
				["@2x"] = 1.5,
				["@4x"] = 3.0
			}
		}
	}
elseif ( string.sub( system.getInfo("model"), 1, 2 ) == "iP" and display.pixelHeight > 960 ) then
	application = {
		content = {
			width = innerRectangleWidth,
			height = innerRectangleWidth / display.pixelWidth * display.pixelHeight,
			scale = "letterBox",
			xAlign = "center",
			yAlign = "center",
			imageSuffix = {
				["@2x"] = 1.5,
				["@4x"] = 3.0
			}
		}
	}
elseif ( string.sub( system.getInfo("model"), 1, 2 ) == "iP" ) then
	application = {
		content = {
			width = innerRectangleWidth,
			height = innerRectangleWidth / display.pixelWidth * display.pixelHeight,
			scale = "letterBox",
			xAlign = "center",
			yAlign = "center",
			imageSuffix = {
				["@2x"] = 1.5,
				["@4x"] = 3.0
			}
		}
	}
elseif ( display.pixelHeight / display.pixelWidth > 1.72 ) then
	application = {
		content = {
			width = innerRectangleWidth,
			height = innerRectangleWidth / display.pixelWidth * display.pixelHeight,
			scale = "letterBox",
			xAlign = "center",
			yAlign = "center",
			imageSuffix = {
				["@2x"] = 1.5,
				["@4x"] = 3.0,
			}
		}
	}

else
	application = {
		content = {
			width = width,
			height = height,
			scale = "letterBox",
			xAlign = "center",
			yAlign = "center",
			imageSuffix =
			{
				["@2x"] = 1.5,
				["@4x"] = 3.0
			}
		}
	}

end